package service;

import java.util.List;

import entity.Word;

public interface TestService {
	/**
	 * Title: randomCommon
	 * Description:获取随机数
	 * @author 毛立新
	 * @param ls
	 * @param email
	 * @return
	 * @throws Exception
	 */
	public List<Integer> randomCommon(List<Integer> ls,String email) throws Exception  ;
	/**
	 * Title: getlist
	 * Description:获取已背单词wordID列表
	 * @author 毛立新
	 * @param email
	 * @return
	 * @throws Exception
	 */
	public List<Integer> getlist(String email) throws Exception;
	/**
	 * Title: showByWord
	 * Description:按ID获取单词
	 * @author 毛立新
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public String showByWord(int id) throws Exception;
	/**
	 * Title: Showword
	 * Description:按随机数获取单词
	 * @author 毛立新
	 * @param email
	 * @return 
	 * @throws Exception
	 */
	public List<Word> Showword(String email) throws Exception;
	/**
	 * Title: Getscore
	 * Description:获得前端分数
	 * @author 毛立新
	 * @param email
	 * @return
	 * @throws Exception
	 */
	public Integer Getscore(String email) throws Exception;
	/**
	 * Title: updatescore
	 * Description:分数的上传
	 * @author 毛立新
	 * @param email
	 * @param score
	 * @return
	 * @throws Exception
	 */
	public void updatescore (String email,int score) throws Exception;
	/**
	 * Title: deletescore
	 * Description:删除记录
	 * @author 毛立新
	 * @param email
	 * @throws Exception
	 */
	public void deletescore(String email)throws Exception;
	/**
	 * Title: addtest
	 * Description:添加记录
	 * @author 毛立新
	 * @param email
	 * @param score
	 * @return
	 * @throws Exception
	 */
	public int addtest(String email,int score)throws Exception;
	/**
     * Title: isaddorupdate
     * Description:判断是修改信息还是上传信息
     * @author 毛立新
     * @throws Exception
     */
    public boolean isaddorupdate(String email,int score)throws Exception ;

}
